<template>
  <div>
    <div>
        <h4>治疗史</h4>
        <el-row>
          <el-col :span="7">
            <span>是否已接受某种治疗：</span>
            <el-select v-model="pgForm.treatment_history_value1" placeholder="请选择" style="width: 40%">
              <el-option
                v-for="item in optionsZhiLiaoShi"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </el-col>
          <el-col :span="5">
            <span>时间：</span>
            <el-input v-model="pgForm.treatment_history_input1" placeholder=""></el-input>
          </el-col>
          <el-col :span="6">
            <span>尿失禁治疗：</span>
            <el-input v-model="pgForm.treatment_history_input2" placeholder=""></el-input>
          </el-col>
          <el-col :span="6">
            <span>康复治疗类型：</span>
            <el-input v-model="pgForm.treatment_history_input3" placeholder=""></el-input>
          </el-col>
        </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "treatment_history",
  title: "治疗史",
  created() {
    if(this.istrans){
      this.pgForm=this.fromdata
    }
  },
  props: {
    fromdata:{},
    istrans:false,
  },
  data(){
    return{
      pgForm: {
        treatment_history_value1: '',
        treatment_history_input1: '',
        treatment_history_input2: '',
        treatment_history_input3: '',
      },
      optionsZhiLiaoShi: [{
        value: '是',
        label: '是'
      }, {
        value: '否',
        label: '否'
      }],

    }
  }
}
</script>

<style scoped>

.el-input{
  width: 50%;
}
.el-row{
  margin: 10px 0;
  padding: 20px 20px;
  background-color: #f9f9f9;
  flex-wrap: wrap;
  flex-direction: row;
}
.el-col {
  margin:10px 0;
}
</style>
